package demo1.Assignment2.factory;

import demo1.Assignment2.entity.Brand;
import demo1.Assignment2.entity.Colour;

public class ColourFactory implements AbstartPhoneFactory {
    @Override
    public Brand getBrand(int type) {
        return null;
    }

    @Override
    public Colour getColour(int type) {
        switch (type) {
            case 1:
                return new Colour.White();
            case 2:
                return new Colour.Black();
            default:
                return null;
        }
    }
}
